package service.impl;

import dao.DlbDao;
import dao.XsbDao;
import entity.CjbEntity;
import entity.DlbEntity;
import entity.XsbEntity;
import org.springframework.stereotype.Service;
import service.DlbService;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Lei
 * @create 2021-04-15 18:55
 */
@Service("DlbServiceImpl")
public class DlbServiceImpl implements DlbService {

    @Resource
    private DlbDao dlbDao;



    @Override
    public DlbEntity selectByUserNameAndPassword(String username, String password) {
        DlbEntity byXhAndKl = dlbDao.findByXhAndKl(username, password);
        return byXhAndKl;
    }

    @Override
    public int addDlbRecord(DlbEntity dlbEntity) {
        dlbDao.addDlbRecord(dlbEntity);
        return 1;
    }

    @Override
    public int updaterecord(DlbEntity dlbEntity) {
        dlbDao.updateRecord(dlbEntity);
        return 1;
    }
}
